﻿using ZenSystemService.Api.DTOs.ProductType;
using ZenSystemService.Api.Entities;

namespace ZenSystemService.Api.DTOs.Product
{
    public class ProductQueryResultDTO
    {
        public int ProductId { get; set; }
        public int InstitutionSalesOrderId { get; set; }
        public InstitutionSalesOrderDTO InstitutionSalesOrder { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// 产品类型Id
        /// </summary>
        public int? ProductTypeId { get; set; }
        public ProductTypeQueryResultDTO? ProductType { get; set; }

        /// <summary>
        /// 机构ID
        /// </summary>
        public int InstitutionId { get; set; }
        public InstitutionDTO Institution { get; set; }

        /// <summary>
        /// 生效开始日期
        /// </summary>
        public DateTime EffectiveStartDate { get; set; }


        /// <summary>
        /// 有效期（天）
        /// </summary>
        public int ValidityDays { get; set; }

        /// <summary>
        /// MAC地址
        /// </summary>
        public string? MacAddress { get; set; }

        /// <summary>
        /// 别名
        /// </summary>
        public string? Alias { get; set; }

        /// <summary>
        /// 唯一编号
        /// </summary>
        public string UniqueNumber { get; set; }

        public string Enabled { get; set; } = "1";
        public string? Status { get; set; }
    }
}
